import { Code, Entity, Jsonb, PrimaryUuid, Title, Uuid } from "@sker/core";


@Entity({ name: 'core_form' })
export class CoreForm {
    @PrimaryUuid()
    id: string;

    @Title()
    title: string;

    @Code()
    name: string;
}

@Entity({ name: 'core_form_item' })
export class CoreFormItem {
    @PrimaryUuid()
    id: string;

    @Uuid({ comment: '所属表单' })
    form_id: string;

    @Title({ comment: '字段名' })
    title: string;

    @Code({ comment: '字段名' })
    dataIndex: string;

    @Jsonb({ comment: '设置' })
    setting: any;
}